package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.Department;
import com.example.pojo.PageBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
public interface DepartmentService extends IService<Department> {
    List<Department> selectWithParent(Integer parentId);

    List<Department> selectList(Integer parentId);

    List<Department> getDeptTree(Integer parentId);

    List<Department> getParentTree(Integer parentId);

    boolean deleteDeptAndSon(Integer id);

    PageBean<Department> getPage(Integer parentId,Integer currentPage, Integer pageSize);
}
